﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Template.Master" CodeBehind="DanhSachKhuyenMai.aspx.cs" Inherits="FastDeal.DoanhNghiep.WebForm2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="Panel1" runat="server">
         <asp:Label ID="Label1" runat="server" CssClass="header" 
             Text="DANH SÁCH KHUYẾN MÃI CỦA BẠN"></asp:Label>
         <style type="text/css">
        .style3
        {
            width: 64px;
        }
        .style4
        {
            width: 64px;
            height: 21px;
        }
    </style>
         <br />
<asp:GridView ID="GVDanhSach" runat="server" AutoGenerateColumns="False" 
        Height="189px" onrowdeleting="GVDanhSach_RowDeleting" 
          onpageindexchanging="GVDanhSach_PageIndexChanging" BackColor="White" 
             BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" CellPadding="4" 
             GridLines="Horizontal" onselectedindexchanged="GVDanhSach_SelectedIndexChanged">
        <Columns>
            <asp:BoundField DataField="MaKhuyenMai" HeaderText="Mã" />
            <asp:BoundField DataField="TenKhuyenMai" HeaderText="Tên" />
            <asp:BoundField DataField="ThoiGianBatDau" HeaderText="Bắt đầu" />
            <asp:BoundField DataField="ThoiGianKetThuc" HeaderText="Kết thúc" />
            <asp:BoundField DataField="TinhTrang" HeaderText="Tình trạng" />
            <asp:BoundField DataField="MaDoanhNghiep" HeaderText="Doanh nghiệp" />
            <asp:TemplateField HeaderText="Chi tiết">
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server" 
                        NavigateUrl='<%# "~/DoanhNghiep/ChiTietKhuyenMai.aspx?ID=" + Eval("MaKhuyenMai") %>' 
                        Text='<%# "Xem" %>'></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Hóa Đơn">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("MaKhuyenMai") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink2" runat="server" 
                        NavigateUrl='<%# "~/DoanhNghiep/KhuyenMaiTheoDoanhNghiep.aspx?MaKhuyenMai=" + Eval("MaKhuyenMai") %>' 
                        Text='<%# "Hóa Đơn" %>'></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:CommandField ButtonType="Image" DeleteImageUrl="~/Icons/cancel.png" 
                HeaderText="Xóa" ShowDeleteButton="True" />
        </Columns>
        <FooterStyle BackColor="White" ForeColor="#333333" />
        <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="White" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F7F7F7" />
        <SortedAscendingHeaderStyle BackColor="#487575" />
        <SortedDescendingCellStyle BackColor="#E5E5E5" />
        <SortedDescendingHeaderStyle BackColor="#275353" />
    </asp:GridView>
&nbsp;&nbsp;&nbsp;
 

    </asp:Panel>

     
</asp:Content>
